package com.ruoyi.service.impl;

import com.ruoyi.domain.Volunteers;
import com.ruoyi.mapper.VolunteersMapper;
import com.ruoyi.service.IVolunteersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * VolunteersService业务层处理
 * 
 * @author wjy
 * @date 2025-01-11
 */
@Service
public class VolunteersServiceImpl implements IVolunteersService 
{
    @Autowired
    private VolunteersMapper volunteersMapper;

    /**
     * 查询Volunteers
     * 
     * @param vid Volunteers主键
     * @return Volunteers
     */
    @Override
    public Volunteers selectVolunteersByVid(Long vid)
    {
        return volunteersMapper.selectVolunteersByVid(vid);
    }

    /**
     * 查询Volunteers列表
     * 
     * @param volunteers Volunteers
     * @return Volunteers
     */
    @Override
    public List<Volunteers> selectVolunteersList(Volunteers volunteers)
    {
        return volunteersMapper.selectVolunteersList(volunteers);
    }

    /**
     * 新增Volunteers
     * 
     * @param volunteers Volunteers
     * @return 结果
     */
    @Override
    public int insertVolunteers(Volunteers volunteers)
    {
        return volunteersMapper.insertVolunteers(volunteers);
    }

    /**
     * 修改Volunteers
     * 
     * @param volunteers Volunteers
     * @return 结果
     */
    @Override
    public int updateVolunteers(Volunteers volunteers)
    {
        return volunteersMapper.updateVolunteers(volunteers);
    }

    /**
     * 批量删除Volunteers
     * 
     * @param vids 需要删除的Volunteers主键
     * @return 结果
     */
    @Override
    public int deleteVolunteersByVids(Long[] vids)
    {
        return volunteersMapper.deleteVolunteersByVids(vids);
    }

    /**
     * 删除Volunteers信息
     * 
     * @param vid Volunteers主键
     * @return 结果
     */
    @Override
    public int deleteVolunteersByVid(Long vid)
    {
        return volunteersMapper.deleteVolunteersByVid(vid);
    }
}
